<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="shortcut icon" href="/favicon.png"/>
    <link rel="bookmark" href="/favicon.png"/>
    <title th:text="${user.getUserName() + ' - 不挂高数社区'}"></title>
    <link rel="stylesheet" href="/css/index.css"/>
    <link rel="stylesheet" href="/css/app.css">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">


    <link rel="stylesheet" href="/css/people-routes.css">
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.4.1/dist/jquery.min.js" type="text/javascript"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>

    <style type="text/css">
        body {
            /*background-image: url("https://api.isoyu.com/bing_images.php");*/
            background-color: #efefef;
        }
        a {
            text-decoration: none;
        }
        a:hover{
            text-decoration: none;
        }
        .container-card {
            padding: 0;
        }
        -webkit-scrollbar{
            width: 2px;
            background: none;
        }
        .list-group-a {
            color: black;
        }
        .list-group-a:hover{
            color: #175199;
        }
    </style>
</head>
<body>
<!-- 标题栏 使用  fixed-top 将标题栏固定在顶部 -->
<div th:insert="~{navigation :: navbar}"></div>
<!-- 内容分割 -->
<div class="container" style="height: 10px">
</div>

<!-- 个人资料卡 -->
<div class="container container-card shadow-sm">
    <div class="Card">
        <div class="ProfileHeader-userCover">
            <div class="UserCoverEditor">
                <div>
                    <div class="UserCover"><img class="UserCover-image"
                                                th:src="${user.getUserTopPhotoUrl()}" alt="用户封面"></div>
                </div>
            </div>
        </div>
        <div class="ProfileHeader-wrapper">
            <div class="ProfileHeader-main">

                <div id="show-head" class="UserAvatarEditor ProfileHeader-avatar" style="top: -25px;">
                    <div class="UserAvatar" onmouseover="showAlterHead()" onmouseout="closeAlterHead()"><img
                            class="Avatar Avatar--large UserAvatar-inner" width="160" height="160"
                            th:src="${user.getHeadUrl()}">
                    </div>
                </div>


                <div class="ProfileHeader-content">
                    <div class="ProfileHeader-contentHead">
                        <h1 class="ProfileHeader-title"><span class="ProfileHeader-name"
                                                              th:text="${user.getUserName()}">陕西颜值扛把子</span><span
                                class="ztext ProfileHeader-headline" th:text="${user.getSimpleSelfIntroduction()}">我与清华只差一个成绩优异</span>
                        </h1>
                        <div class="ProfileHeader-info" id="ProfileHeader-info">
                            <div class="ProfileHeader-infoItem">
                                <div class="ProfileHeader-iconWrapper">
                                    <svg viewBox="0 0 20 18" class="Icon Icon--company" width="13" height="16"
                                         aria-hidden="true" style="height: 16px; width: 13px;"><title></title>
                                        <g>
                                            <path d="M15 3.998v-2C14.86.89 13.98 0 13 0H7C5.822 0 5.016.89 5 2v2l-3.02-.002c-1.098 0-1.97.89-1.97 2L0 16c0 1.11.882 2 1.98 2h16.033c1.1 0 1.98-.89 1.987-2V6c-.007-1.113-.884-2.002-1.982-2.002H15zM7 4V2.5s-.004-.5.5-.5h5c.5 0 .5.5.5.5V4H7z"></path>
                                        </g>
                                    </svg>
                                </div>
                                <span th:text="${user.getSchool()}">家里蹲大学</span>
                                <div class="ProfileHeader-divider"></div>
                                <span th:text="${user.getMajor()}"></span>
                            </div>
                            <div class="ProfileHeader-infoItem">
                                <div class="ProfileHeader-iconWrapper">
                                    <img th:if="${user.getSex() == '男'}" src="/image/icon/boy.svg" width="20"
                                         height="20"/>
                                    <img th:if="${user.getSex() == '女'}" src="/image/icon/girl.svg" width="20"
                                         height="20"/>
                                    <span th:if="${user.getSex() == '保密'}">该用户未公开性别</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="ProfileHeader-contentBody" id="ProfileHeader-detail"
                         style="overflow: hidden; transition: height 300ms ease-out 0s; height: 171px;display: none;">
                        <div>
                            <div class="ProfileHeader-detail">
                                <div class="ProfileHeader-detailItem"><span class="ProfileHeader-detailLabel">爱好</span>
                                    <div class="ProfileHeader-detailValue" th:if="${user.getLikes()==null}">该用户暂未填写
                                    </div>
                                    <div class="ProfileHeader-detailValue" th:if="${user.getLikes()!=null}"
                                         th:text="${user.getLikes()}"></div>
                                </div>


                                <div class="ProfileHeader-detailItem"><span
                                        class="ProfileHeader-detailLabel">个性签名</span>
                                    <div class="ztext ProfileHeader-detailValue"
                                         th:if="${user.getSimpleSelfIntroduction()==null}">该用户暂未填写
                                    </div>
                                    <div class="ProfileHeader-detailValue" th:if="${user.SimpleSelfIntroduction!=null}"
                                         th:text="${user.getSimpleSelfIntroduction()}"></div>
                                </div>

                                <div class="ProfileHeader-detailItem"><span
                                        class="ProfileHeader-detailLabel">简介</span>
                                    <div class="ztext ProfileHeader-detailValue"
                                         th:if="${user.getSelfIntroduction()==null}">该用户暂未填写
                                    </div>
                                    <div class="ProfileHeader-detailValue" th:if="${user.getSelfIntroduction()!=null}"
                                         th:text="${user.getSelfIntroduction()}"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="ProfileHeader-contentFooter">
                        <button type="button" id="show-ProfileHeader-detail-btn"
                                class="Button ProfileHeader-expandButton Button--plain" onclick="showDetail()">
                            显示详细资料
                        </button>
                        <div class="ProfileButtonGroup ProfileHeader-buttons">
                            <a th:if="${session.user != null && session.user.getId() == user.getId()}" href="/setting"
                                    class="Button Button--blue">编辑个人资料
                            </a>

                            <button  th:if="${session.user != null && session.user.getId() != user.getId()}" onclick="followUser(this)" id="follow_user_button" th:id-data="${user.getId()}" type="button" class="Button FollowButton Button--primary Button--blue">
                                <span th:if="${isFollowUser==false}" style="display: inline-flex; align-items: center;">&#8203;<svg class="Zi Zi--Plus FollowButton-icon" fill="currentColor" viewBox="0 0 24 24" width="1.2em" height="1.2em"><path d="M13.491 10.488s-.012-5.387 0-5.998c-.037-1.987-3.035-1.987-2.997 0-.038 1.912 0 5.998 0 5.998H4.499c-1.999.01-1.999 3.009 0 3.009s5.995-.01 5.995-.01v5.999c0 2.019 3.006 2.019 2.997 0-.01-2.019 0-5.998 0-5.998s3.996.009 6.004.009c2.008 0 2.008-3-.01-3.009h-5.994z" fill-rule="evenodd"></path></svg></span>
                                <span th:if="${isFollowUser}">取消关注</span>
                                <span th:if="${isFollowUser==false}">关注他</span>
                            </button>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- 内容分割 -->
<div class="container" style="height: 10px">
</div>

<!-- 内容 -->
<div class="container" style="background-color: #efefef;">
    <div class="row">
        <!-- 左边问题列表 -->
        <div th:if="${paginationDto != null}" class="col-xl-9 mt-3 shadow-sm" style="background-color: white;">
            <!-- 帖子列表头 -->
            <div class="container mt-2 mb-2">
                <ul class="nav">
                    <li class="nav-item">
                        <a class="nav-link" th:href="'/user/' + ${user.getUserId()}">发帖</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" th:href="'/user/' + ${user.getUserId()}+ @{/(type=1)}">回复</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">文章</a>
                    </li>
                </ul>
                <hr style="margin-top: 0%;">
            </div>
            <!-- 提示 -->
            <div class="text-center" th:if="${paginationDto.totalPage} == 0">它还没有发布任何动态</div>

            <!-- 帖子 -->
            <div th:each="question : ${paginationDto.data}">
                <div class="media ml-3">
                    <div class="media-body">
                        <h5 class="mt-0"><a class="link-to-text" target="_blank"  th:href="'/question/' + ${question.getQuestionId()}" th:text="${question.title}">中间对齐</a></h5>
                        <!-- TODO 等待添加摘要 -->
                        <!--<p class="mb-1">Cras sit amet nibh libero</p>-->

                        <p class="mb-0 small">
                            <a class="issuse-question-class" target="_blank" href="#" th:text="${question.classification}">分类</a>
                            <a class="issuse-question-people" target="_blank" href="#" th:text="${user.userName}">人名</a>
                            <span class="issuse-question-span">
                                •<span th:text="${question.likeCount}">人数</span><span>人点赞</span>
                                •<span th:text="${question.commentCount}">人数</span><span>个回复</span>
                                •<span th:text="${question.viewCount}">人数</span><span>次浏览</span>
                                •<span>最新修改：</span><span th:text="${question.alterTime}">人数</span>
                            </span>
                        </p>
                    </div>
                </div>
                <hr/>
            </div>

            <!-- 页码 -->
            <nav aria-label="Page navigation example" th:if="${paginationDto.totalPage} != 0">
                <ul class="pagination justify-content-end">
                    <!-- 返回首页 -->
                    <li class="page-item" th:if="${paginationDto.showFirstPage}">
                        <a class="page-link" id="first-page-a" th:href="'/user/' + ${user.getUserId()}+ @{/(page=1,type=${type})}"
                           aria-label="Previous" onclick="addLocaleUrlForPage('first-page-a')">
                            <span aria-hidden="true">&laquo;&laquo;</span>
                            <span class="sr-only">Previous</span>
                        </a>
                    </li>
                    <!-- 上一页 -->
                    <li class="page-item" th:if="${paginationDto.showPrevious}">
                        <a class="page-link" id="link-to-last-a"
                           th:href="'/user/'+ ${user.getUserId()} + @{/(page=${paginationDto.nowPage-1},type=${type})}"
                           aria-label="Previous"
                           onclick="addLocaleUrlForPage('link-to-last-a')">
                            <span aria-hidden="true">&laquo;</span>
                            <span class="sr-only">Previous</span>
                        </a>
                    </li>


                    <li class="page-item" th:each="page : ${paginationDto.pages}"
                        th:class="${paginationDto.nowPage == page}? 'page-item active' : 'page-item'">
                        <a class="page-link" th:href="${'/user/'+user.getUserId()} + @{/(page=${page},type=${type})}"
                           th:text="${page}" th:id="${page}"
                           th:onclick="'javascript:addLocaleUrlForPage(\''+${page}+'\')'">
                            1
                        </a>
                    </li>


                    <!-- 下一页 -->
                    <li class="page-item" th:if="${paginationDto.showNext}">
                        <a class="page-link" id="lind-to-next-a"
                           th:href="'/user/'+${user.getUserId()} + @{/(page=${paginationDto.nowPage+1},type=${type})}"
                           aria-label="Next"
                           onclick="addLocaleUrlForPage('lind-to-next-a')">
                            <span aria-hidden="true">&raquo;</span>
                            <span class="sr-only">Next</span>
                        </a>
                    </li>
                    <!-- 最后一页 -->
                    <li class="page-item" th:if="${paginationDto.showEndPage}">
                        <a class="page-link" id="link-to-end-a"
                           th:href="'/user/'+${user.getUserId()} + @{/(page=${paginationDto.totalPage},type=${type})}"
                           th:if="${paginationDto.showEndPage}"
                           aria-label="Next" onclick="addLocaleUrlForPage('link-to-end-a')">
                            <span aria-hidden="true">&raquo;&raquo;</span>
                            <span class="sr-only">Next</span>
                        </a>
                    </li>
                </ul>
            </nav>
        </div>

        <!-- 左边关注话题列表       -->
        <div th:if="${followTopics != null}" class="col-xl-9 mt-3 shadow-sm" style="background-color: white;">
            <!-- 帖子列表头 -->
            <div class="container mt-2 mb-2">
                <ul class="nav">
                    <li class="nav-item">
                        <a class="nav-link" name="question" th:href="'/user/' + ${user.getUserId()} + '/following/questions#question'">关注的问题</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" name="topic" th:href="'/user/' + ${user.getUserId()} + '/following/topic#topic'">关注的话题</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" name="user" th:href="'/user/' + ${user.getUserId()} + '/following/user#user'">关注的人</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" name="fans" th:href="'/user/' + ${user.getUserId()} + '/following/fans#fans'">粉丝</a>
                    </li>
                </ul>
                <hr style="margin-top: 0%;">
                <div class="container">
                    <div class="row">
                        <div class="col-5 mt-3" th:each="tagclass : ${followTopics}">
                            <div class="media">
                                <a class="link-to-text" th:href="@{/(tag=${tagclass.getTopicTitle()})}"><img
                                        class="align-self-center mr-3 img-fluid" th:src="${tagclass.getTopicImage()}"
                                        style="width: 64px; height: auto; "></a>
                                <div class="media-body">
                                    <h5 class="mt-0">
                                        <a class="link-to-text" th:href="@{/(tag=${tagclass.getTopicTitle()})}">
                                            <span th:text="${tagclass.getTopicTitle()}"></span>
                                        </a>

                                    </h5>
                                </div>
                            </div>
                            <hr/>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- 左边关注问题列表       -->
        <div th:if="${followQuestions != null}" class="col-xl-9 mt-3 shadow-sm" style="background-color: white;">
            <!-- 帖子列表头 -->
            <div class="container mt-2 mb-2">
                <ul class="nav">
                    <li class="nav-item">
                        <a class="nav-link" name="question" th:href="'/user/' + ${user.getUserId()} + '/following/questions#question'">关注的问题</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" name="topic" th:href="'/user/' + ${user.getUserId()} + '/following/topic#topic'">关注的话题</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" name="user" th:href="'/user/' + ${user.getUserId()} + '/following/user#user'">关注的人</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" name="fans" th:href="'/user/' + ${user.getUserId()} + '/following/fans#fans'">粉丝</a>
                    </li>
                </ul>
                <hr style="margin-top: 0%;">
                <div class="container">
                    <div th:each="question : ${followQuestions.data}">
                        <h5><a class="list-group-a" th:href="'/question/' + ${question.followQuestionId}" th:text="${question.followQuestionTitle}"></a></h5>
                        <p style="font-size: 14px; color: #8590a6;"><span>关注时间：</span> <span th:text="${question.time}"></span></p>
                        <hr/>
                    </div>
                </div>
                <nav aria-label="Page navigation example" th:if="${followQuestions.totalPage} != 0">
                    <ul class="pagination justify-content-end">
                        <!-- 返回首页 -->
                        <li class="page-item" th:if="${followQuestions.showFirstPage}">
                            <a class="page-link" id="first-page-a" th:href="'/user/' + ${user.getUserId()}+ '/following/questions' +@{/(page=1)}"
                               aria-label="Previous" onclick="addLocaleUrlForPage('first-page-a')">
                                <span aria-hidden="true">&laquo;&laquo;</span>
                                <span class="sr-only">Previous</span>
                            </a>
                        </li>
                        <!-- 上一页 -->
                        <li class="page-item" th:if="${followQuestions.showPrevious}">
                            <a class="page-link" id="link-to-last-a"
                               th:href="'/user/'+ ${user.getUserId()} + '/following/questions' + @{/(page=${followQuestions.nowPage-1})}"
                               aria-label="Previous"
                               onclick="addLocaleUrlForPage('link-to-last-a')">
                                <span aria-hidden="true">&laquo;</span>
                                <span class="sr-only">Previous</span>
                            </a>
                        </li>


                        <li class="page-item" th:each="page : ${followQuestions.pages}"
                            th:class="${followQuestions.nowPage == page}? 'page-item active' : 'page-item'">
                            <a class="page-link" th:href="${'/user/'+user.getUserId()} +'/following/questions'+ @{/(page=${page})}"
                               th:text="${page}" th:id="${page}"
                               th:onclick="'javascript:addLocaleUrlForPage(\''+${page}+'\')'">
                                1
                            </a>
                        </li>


                        <!-- 下一页 -->
                        <li class="page-item" th:if="${followQuestions.showNext}">
                            <a class="page-link" id="lind-to-next-a"
                               th:href="'/user/'+${user.getUserId()} +'/following/questions'+ @{/(page=${followQuestions.nowPage+1})}"
                               aria-label="Next"
                               onclick="addLocaleUrlForPage('lind-to-next-a')">
                                <span aria-hidden="true">&raquo;</span>
                                <span class="sr-only">Next</span>
                            </a>
                        </li>
                        <!-- 最后一页 -->
                        <li class="page-item" th:if="${followQuestions.showEndPage}">
                            <a class="page-link" id="link-to-end-a"
                               th:href="'/user/'+${user.getUserId()} + '/following/questions'+@{/(page=${followQuestions.totalPage})}"
                               th:if="${followQuestions.showEndPage}"
                               aria-label="Next" onclick="addLocaleUrlForPage('link-to-end-a')">
                                <span aria-hidden="true">&raquo;&raquo;</span>
                                <span class="sr-only">Next</span>
                            </a>
                        </li>
                    </ul>
                </nav>
            </div>
        </div>

        <!-- 关注的人       -->
        <div th:if="${followUser != null}" class="col-xl-9 mt-3 shadow-sm" style="background-color: white;">
            <!-- 帖子列表头 -->
            <div class="container mt-2 mb-2">
                <ul class="nav">
                    <li class="nav-item">
                        <a class="nav-link" name="question" th:href="'/user/' + ${user.getUserId()} + '/following/questions#question'">关注的问题</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" name="topic" th:href="'/user/' + ${user.getUserId()} + '/following/topic#topic'">关注的话题</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" name="user" th:href="'/user/' + ${user.getUserId()} + '/following/user#user'">关注的人</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" name="fans" th:href="'/user/' + ${user.getUserId()} + '/following/fans#fans'">粉丝</a>
                    </li>
                </ul>
                <hr style="margin-top: 0%;">
            </div>
            <div class="container">
                <div th:each="follow : ${followUser.data}">
                    <div class="row">
                        <div class="col-9">
                            <div class="media">
                                <a th:href="${'/user/' + follow.userId}">
                                    <img class="align-self-center mr-3 img-fluid rounded-circle" th:src="${follow.headUrl}" style="max-width: 64px; height: auto; "/>
                                </a>
                                <div class="media-body">
                                    <h5 class="mt-0">
                                        <a class="link-to-text" target="_blank" th:href="${'/user/' + follow.userId}" th:text="${follow.userName}"></a>
                                    </h5>
                                    <!-- TODO 等待添加摘要 -->
                                    <!--<p class="mb-1">Cras sit amet nibh libero</p>-->

                                    <p>
                                        <span>简介：</span><span th:text="${follow.simpleSelfIntroduction}"></span>
                                    </p>
                                    <p style="color: #8590a6;">
                                        <span th:text="${follow.likeCount}"></span><span>赞</span>
                                        <span th:text="${follow.fansCount}"></span><span>关注者</span>
                                    </p>
                                </div>
                            </div>
                        </div>
                        <div class="col-2">
<!--                            <button type="button" class="btn btn-outline-primary">关注</button>-->
                        </div>
                        <hr/>
                    </div>
                </div>
                <nav aria-label="Page navigation example" th:if="${followUser.totalPage} != 0">
                    <ul class="pagination justify-content-end">
                        <!-- 返回首页 -->
                        <li class="page-item" th:if="${followUser.showFirstPage}">
                            <a class="page-link" id="first-page-a" th:href="'/user/' + ${user.getUserId()}+ '/following/user' +@{/(page=1)}"
                               aria-label="Previous" onclick="addLocaleUrlForPage('first-page-a')">
                                <span aria-hidden="true">&laquo;&laquo;</span>
                                <span class="sr-only">Previous</span>
                            </a>
                        </li>
                        <!-- 上一页 -->
                        <li class="page-item" th:if="${followUser.showPrevious}">
                            <a class="page-link" id="link-to-last-a"
                               th:href="'/user/'+ ${user.getUserId()} + '/following/user' + @{/(page=${followQuestions.nowPage-1})}"
                               aria-label="Previous"
                               onclick="addLocaleUrlForPage('link-to-last-a')">
                                <span aria-hidden="true">&laquo;</span>
                                <span class="sr-only">Previous</span>
                            </a>
                        </li>


                        <li class="page-item" th:each="page : ${followUser.pages}"
                            th:class="${followUser.nowPage == page}? 'page-item active' : 'page-item'">
                            <a class="page-link" th:href="${'/user/'+user.getUserId()} +'/following/user'+ @{/(page=${page})}"
                               th:text="${page}" th:id="${page}"
                               th:onclick="'javascript:addLocaleUrlForPage(\''+${page}+'\')'">
                                1
                            </a>
                        </li>


                        <!-- 下一页 -->
                        <li class="page-item" th:if="${followUser.showNext}">
                            <a class="page-link" id="lind-to-next-a"
                               th:href="'/user/'+${user.getUserId()} +'/following/user'+ @{/(page=${followQuestions.nowPage+1})}"
                               aria-label="Next"
                               onclick="addLocaleUrlForPage('lind-to-next-a')">
                                <span aria-hidden="true">&raquo;</span>
                                <span class="sr-only">Next</span>
                            </a>
                        </li>
                        <!-- 最后一页 -->
                        <li class="page-item" th:if="${followUser.showEndPage}">
                            <a class="page-link" id="link-to-end-a"
                               th:href="'/user/'+${user.getUserId()} + '/following/user'+@{/(page=${followQuestions.totalPage})}"
                               th:if="${followUser.showEndPage}"
                               aria-label="Next" onclick="addLocaleUrlForPage('link-to-end-a')">
                                <span aria-hidden="true">&raquo;&raquo;</span>
                                <span class="sr-only">Next</span>
                            </a>
                        </li>
                    </ul>
                </nav>
            </div>
        </div>

        <!-- 粉丝       -->
        <div th:if="${userFans != null}" class="col-xl-9 mt-3 shadow-sm" style="background-color: white;">
            <!-- 帖子列表头 -->
            <div class="container mt-2 mb-2">
                <ul class="nav">
                    <li class="nav-item">
                        <a class="nav-link" name="question" th:href="'/user/' + ${user.getUserId()} + '/following/questions#question'">关注的问题</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" name="topic" th:href="'/user/' + ${user.getUserId()} + '/following/topic#topic'">关注的话题</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" name="user" th:href="'/user/' + ${user.getUserId()} + '/following/user#user'">关注的人</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" name="fans" th:href="'/user/' + ${user.getUserId()} + '/following/fans#fans'">粉丝</a>
                    </li>
                </ul>
                <hr style="margin-top: 0%;">
            </div>
            <div class="container">
                <div th:each="fans : ${userFans.data}">
                    <div class="row">
                        <div class="col-9">
                            <div class="media">
                                <a th:href="${'/user/' + fans.userId}">
                                    <img class="align-self-center mr-3 img-fluid rounded-circle" th:src="${fans.headUrl}" style="max-width: 64px; height: auto; "/>
                                </a>
                                <div class="media-body">
                                    <h5 class="mt-0">
                                        <a class="link-to-text" target="_blank" th:href="${'/user/' + fans.userId}" th:text="${fans.userName}"></a>
                                    </h5>
                                    <!-- TODO 等待添加摘要 -->
                                    <!--<p class="mb-1">Cras sit amet nibh libero</p>-->

                                    <p>
                                        <span>简介：</span><span th:text="${fans.simpleSelfIntroduction}"></span>
                                    </p>
                                    <p style="color: #8590a6;">
                                        <span th:text="${fans.likeCount}"></span><span>赞</span>
                                        <span th:text="${fans.fansCount}"></span><span>关注者</span>
                                    </p>
                                </div>
                            </div>
                        </div>
                        <div class="col-2">
<!--                            <button type="button" class="btn btn-outline-primary">关注</button>-->
                        </div>
                        <hr/>
                    </div>
                </div>
                <nav aria-label="Page navigation example" th:if="${userFans.totalPage} != 0">
                    <ul class="pagination justify-content-end">
                        <!-- 返回首页 -->
                        <li class="page-item" th:if="${userFans.showFirstPage}">
                            <a class="page-link" id="first-page-a" th:href="'/user/' + ${user.getUserId()}+ '/following/fans' +@{/(page=1)}"
                               aria-label="Previous" onclick="addLocaleUrlForPage('first-page-a')">
                                <span aria-hidden="true">&laquo;&laquo;</span>
                                <span class="sr-only">Previous</span>
                            </a>
                        </li>
                        <!-- 上一页 -->
                        <li class="page-item" th:if="${userFans.showPrevious}">
                            <a class="page-link" id="link-to-last-a"
                               th:href="'/user/'+ ${user.getUserId()} + '/following/fans' + @{/(page=${userFans.nowPage-1})}"
                               aria-label="Previous"
                               onclick="addLocaleUrlForPage('link-to-last-a')">
                                <span aria-hidden="true">&laquo;</span>
                                <span class="sr-only">Previous</span>
                            </a>
                        </li>


                        <li class="page-item" th:each="page : ${userFans.pages}"
                            th:class="${userFans.nowPage == page}? 'page-item active' : 'page-item'">
                            <a class="page-link" th:href="${'/user/'+user.getUserId()} +'/following/fans'+ @{/(page=${page})}"
                               th:text="${page}" th:id="${page}"
                               th:onclick="'javascript:addLocaleUrlForPage(\''+${page}+'\')'">
                                1
                            </a>
                        </li>


                        <!-- 下一页 -->
                        <li class="page-item" th:if="${userFans.showNext}">
                            <a class="page-link" id="lind-to-next-a"
                               th:href="'/user/'+${user.getUserId()} +'/following/fans'+ @{/(page=${userFans.nowPage+1})}"
                               aria-label="Next"
                               onclick="addLocaleUrlForPage('lind-to-next-a')">
                                <span aria-hidden="true">&raquo;</span>
                                <span class="sr-only">Next</span>
                            </a>
                        </li>
                        <!-- 最后一页 -->
                        <li class="page-item" th:if="${userFans.showEndPage}">
                            <a class="page-link" id="link-to-end-a"
                               th:href="'/user/'+${user.getUserId()} + '/following/fans'+@{/(page=${userFans.totalPage})}"
                               th:if="${userFans.showEndPage}"
                               aria-label="Next" onclick="addLocaleUrlForPage('link-to-end-a')">
                                <span aria-hidden="true">&raquo;&raquo;</span>
                                <span class="sr-only">Next</span>
                            </a>
                        </li>
                    </ul>
                </nav>
            </div>
        </div>

        <!-- 右边 -->
        <div class="col">
            <br/>
            <div class="container shadow-sm" style="background-color: white;">
                <div class="card" style="border: 0px;">
                    <h5 class="mt-4">个人成就</h5>
                    <hr/>
                    <div class="card-body mb-2">
                        <img src="/image/icon/like.svg" width="20" height="20">获得 &nbsp; <span th:text="${user.likeCount}">100</span> &nbsp;次点赞
                    </div>
                </div>
            </div>
            <br/>
            <div class="card shadow-sm" style="background-color: white; border: 0px">
                <div class="row" style="text-align: center;">
                    <br/>
                    <div class="col mt-4">
                        <a th:href="'/user/'+${user.getUserId()} + '/following/user#user'">
                            <p>关注了</p>
                            <div class="card-body mb-2">
                                <h5 th:text="${user.followCount}">100</h5>
                            </div>
                        </a>
                    </div>
                    <div class="col mt-4">
                        <a th:href="'/user/'+${user.getUserId()} + '/following/fans#fans'">
                            <p>关注者</p>
                            <div class="card-body mb-2">
                                <h5 th:text="${user.fansCount}">100</h5>
                            </div>
                        </a>
                    </div>
                </div>
            </div>
            <br/>
            <div class="container shadow-sm" style="background-color: white;">
                <ul class="list-group list-group-flush">
                    <li class="list-group-item">
                        <a class="list-group-a" th:href="${'/user/' + user.userId}">动态</a>
                    </li>
                    <li class="list-group-item">
                        <a class="list-group-a" th:href="${'/user/' + user.userId + '/following/questions#question'}">关注的问题</a>
                    </li>
                    <li class="list-group-item">
                        <a class="list-group-a" th:href="${'/user/' + user.userId + '/following/topic#topic'}">关注的话题</a>
                    </li>
                    <li class="list-group-item">最新回复</li>
                    <li class="list-group-item">邀请我的问题</li>
                </ul>
            </div>
            <br/>
            <div class="container shadow-sm" style="background-color: white;">
                <p>广告</p>
                <div id="Advertisement" class="carousel slide" data-ride="carousel">
                    <ol class="carousel-indicators" >
                        <li th:each="ad : ${advertisements}" th:class="${adStat.index == 0} ? 'active' : ''" data-target="#Advertisement"  th:data-slide-to="${adStat.index}"></li>
                    </ol>
                    <div class="carousel-inner">
                        <div th:each="ad : ${advertisements}" th:class="${adStat.index == 0} ? 'carousel-item active' : 'carousel-item'">
                            <a th:href="'/adUrl' + @{/(url=${ad.url},id=${ad.id})}" target="_blank">
                                <img class="d-block w-100" th:src="${ad.image}" th:alt="${ad.title}" th:title="${ad.title}">
                                <div class="carousel-caption d-none d-md-block mb-0" style="border-bottom: 0px">
                                    <p class="mb-0" th:text="${ad.title}"></p>
                                </div>
                            </a>
                        </div>
                    </div>
                    <a class="carousel-control-prev" href="#Advertisement" role="button" data-slide="prev">
                        <span class="carousel-control-prev-icon" aria-hidden="true"></span>
                        <span class="sr-only">Previous</span>
                    </a>
                    <a class="carousel-control-next" href="#Advertisement" role="button" data-slide="next">
                        <span class="carousel-control-next-icon" aria-hidden="true"></span>
                        <span class="sr-only">Next</span>
                    </a>
                </div>
            </div>

        </div>
    </div>

    <div class="container" style="height: 30px">
    </div>
</div>




<!-- 页脚 -->
<div th:insert="~{footer :: footer}"></div>
<script src="/js/follow.js" type="text/javascript"></script>
<script src="/js/url.js" type="text/javascript"></script>
<script src="/js/user.js" type="text/javascript"></script>
</body>
</html>
